how to solve motion numericals